﻿<ion-view view-title="我的供应商" class="distributor_sxqd">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>

	<ion-content class="bg">
		<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
		
		<!--没有数据 -->
		<div class="noData" ng-if="firstHide&&!datas.data">
			<img src="./img/guilin/other/noorder@2x.png" />
			<div class="tip">你还没有供应商数据</div>
			<div class="tipAgin">请联系未来万家，<br>我们将为您推荐供应商！</div>
		</div>
		
		<div class="list">
			<div class="item supplierframe" ng-repeat-start="data in datas.data">
				<div class="imgframe">
					<img src="./img/guilin/common/icon_shop@2x.png" />
				</div>
				<div class="shopframe" on-tap="onshow_detail(data.store_id)">
					<div class="shopname" on-tap="onshow_first($event,data.store_id)">
						{{data.store_name}}<img src="./img/guilin/common/icon_right@2x.png"/>
					</div>
					<p>代理品牌：{{data.brands}}</p>
					<p>授信额度：{{data.credit_line}}</p>
					<p>欠款金额：{{data.used_amount}}</p>
				</div>
			</div>
			<div class="item btnItem" ng-repeat-end="">		
				<div class="basebtn blue" on-tap="show_repayment(data.store_id)">还款</div>
				<div class="basebtn red" on-tap="show_redbag(data.store_id)"><img src="./img/guilin/other/red-bag.icon@2x.png"/>发红包</div>
			</div>
		</div>
	
		<!--描述：当用户到达页脚或页脚附近时-->
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-content>
</ion-view>